package com.taobao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.taobao.home.mapper.ProcessMapper;
import com.taobao.home.model.po.Process;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.http.client.OkHttp3ClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

import java.util.List;

@SpringBootApplication
@EnableFeignClients(basePackages={"com.taobao.home.feignclient"})
public class HomeApplication {


    public static void main(String[] args) {
        SpringApplication.run(HomeApplication.class, args);


    }

    @Bean
    RestTemplate restTemplate(){
        RestTemplate restTemplate = new RestTemplate(new OkHttp3ClientHttpRequestFactory());
        return  restTemplate;
    }
}
